﻿namespace BlazorApp4.Data
{
    public class RecentUser
    {
		
		//这里构造函数的名字要和redis中存储的对应起来，否则在get的时候会报错
		public RecentUser(String username, int counter, string latestMessage) {
		    this.Counter = counter;
		    this.Username = username;
			this.LatestMessage = latestMessage;
		}

        public string Username { get; set; }
        public int Counter { get; set; }
		public string LatestMessage{ get; set; }
    }
}
